import request from '/@/utils/request'

export function api_bukao(params: any) {
  const res = request({
    url: `/sport_zk_student/update_bukao`,
    method: 'get',
    params,
  })
  console.log('api_bukao', res)
  return res
}

export function api_rychang(params: any) {
  const res = request({
    url: `/sport_zk_student/ruchang`,
    method: 'get',
    params,
  })
  console.log('api_rychang', res)
  return res
}
//进行上传
export function api_uploadStudents(params: any) {
  const res = request({
    url: `/sport_zk_exam/uploadStudents`,
    method: 'get',
    params,
  })
  console.log('api_uploadStudents', res)
  return res
}

//获取所有班级
export function api_getGroups(params: any) {
  const res = request({
    url: `/sport_zk_exam/getGroups`,
    method: 'get',
    params,
  })
  console.log('api_getClass', res)
  return res
}

//获取所有学生
export function api_getStudents(params: any) {
  const res = request({
    url: `/sport_zk_exam/getStudents`,
    method: 'get',
    params,
  })
  console.log('api_getStudents', res)
  return res
}

export function getStudentsPrints(params: any) {
  const res = request({
    url: `/sport_zk_exam/getStudentsPrints`,
    method: 'get',
    params,
  })
  console.log('getStudentsPrints', res)
  return res
}

export function api_getStudentDetail(params: any) {
  const res = request({
    url: `/sport_zk_exam/getStudentDetail`,
    method: 'get',
    params,
  })
  console.log('api_getStudentDetail', res)
  return res
}

//获取考试记录
export function api_getLog(params: any) {
  const res = request({
    url: `/sport_zk_exam/getLog`,
    method: 'get',
    params,
  })
  console.log('api_getLog', res)
  return res
}

//获取统计数据
export function api_getReportData(params: any) {
  const res = request({
    url: `/sport_zk_exam/getReportData`,
    method: 'get',
    params,
  })
  console.log('api_getReport', res)
  return res
}

//获取统计数据
export function api_getReport(params: any) {
  const res = request({
    url: `/sport_zk_exam/getReport`,
    method: 'get',
    params,
  })
  console.log('api_getReport', res)
  return res
}

//获取统计数据
export function api_getProjectReport(params: any) {
  const res = request({
    url: `/sport_zk_exam/getProjectReport`,
    method: 'get',
    params,
  })
  console.log('api_getProjectReport', res)
  return res
}

//生成组别
export function api_createGroup(params: any) {
  const res = request({
    url: `/sport_zk_exam/create_group`,
    method: 'get',
    params,
  })
  console.log('api_createGroup', res)
  return res
}
